typedef struct
{
	BOOL B_ENABLE;
	BOOL B_READ;
	BOOL B_WRITE;
	char IP[20];
	WORD PORT;
	WORD STATION_ID;
	WORD READ_START_ADRESS;
	WORD READ_DATA_LEN;
	WORD WRITE_START_ADRESS;
	WORD WRITE_DATA_LEN;
	WORD *P_DI_DATA;
	WORD *P_DO_DATA;
	WORD TIME_OUT;
}
SMODBUSTCPCLIENTINFOtyp;

typedef struct
{
	BOOL B_ENABLE;
	char IP[20];
	WORD PORT;
	WORD *P_DI_DATA;
	WORD *P_DO_DATA;
	WORD TIME_OUT;
}
SMODBUSTCPSERVERINFOtyp;


/* Enum definitions */


/* The Prototypes */
BOOL GRT_GETMODBUSTCPCLIENTCONNECTSTATUS(void);
;
BOOL SMODBUSTCPCLIENTINFOinit(SMODBUSTCPCLIENTINFOtyp* inst, BOOL bRetain);
SMODBUSTCPCLIENTINFOtyp GRT_GETMODBUSTCPCLIENTINFO(void);
;
BOOL SMODBUSTCPSERVERINFOinit(SMODBUSTCPSERVERINFOtyp* inst, BOOL bRetain);
SMODBUSTCPSERVERINFOtyp GRT_GETMODBUSTCPSERVERINFO(void);
;
BOOL GTR_DELETEINSTANCE(void);
;
BOOL GTR_LOOPMODBUSTCPCLIENT(void);
;
BOOL GTR_LOOPMODBUSTCPSERVER(void);
;
BOOL GTR_SETMODBUSTCPCLIENTINFO(SMODBUSTCPCLIENTINFOtyp *INFOparam);
;
BOOL GTR_SETMODBUSTCPSERVERINFO(SMODBUSTCPSERVERINFOtyp *INFOparam);
;
